package TestCases;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class LoggerUtils {

    private static final Map<Class<?>, Logger> loggerMap = new ConcurrentHashMap<>();

    public static Logger getLogger(Class<?> clazz) {
        return loggerMap.computeIfAbsent(clazz, LoggerFactory::getLogger);
    }

}
